# 将音频文件转换为wav格式，并将采样率设置为16000Hz，声道数设置为1
from pydub import AudioSegment

def convert_to_wav(input_file, output_file):
    audio = AudioSegment.from_file(input_file)
    audio = audio.set_frame_rate(16000).set_channels(1)
    audio.export(output_file, format="wav")
    return output_file

input_audio = "apple1.mp3"
output_audio = "your_audio.wav"
converted_audio = convert_to_wav(input_audio, output_audio)